<?php
/* @var $this SiteController */

$this->pageTitle = Yii::app()->name;
?>

<!-- Example row of columns -->
<div class="row">
    <div class="col-lg-3">
        <ul class="nav nav-pills nav-stacked">
  			<li class="nav-header">OTC Ideality</li>
                            <?php
                            foreach ($listCategory as $index=> $row) {
                                    echo '<li>' . CHtml::link($row["title"], array("/site/listideality", "cate_id" => $row["id"])) . '</li>';
                               
                            }
                            ?>
		</ul>
    </div>
    <div class="col-lg-9">
       <table class="table table-hover table-bordered">
            <tr>
                <th>STT</th>
                <th>Author</th>
                <th>Title</th>
                <th>Short Description</th>
                <th>Partly Price</th>
                <th>Full Price</th>
            </tr>
            <?php
            $index = 1;
            foreach ($listIdeality as $row) {
                ?>
                <tr>
                    <td><?php echo $index++; ?></td>
                    <td><?php echo $row['user']['profile']['firstname'] .' '. $row['user']['profile']['lastname']; ?></td>
                    <td><?php echo $row['title']; ?></td>
                    <td><?php echo $row['short_description']; ?></td>
                    <td><?php echo $row['partly_price']; ?></td>
                    <td><?php echo $row['full_price']; ?></td>
                </tr>

            <?php
            }
            ?>
        </table>
    </div>
   
</div>
